﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Coding4Fun.Toolkit.Controls">

    <Style TargetType="local:TileNotification">
		<Setter Property="Background" Value="{StaticResource DefaultChromeBrush}"/>
		<Setter Property="Foreground" Value="{StaticResource DefaultForegroundBrush}"/>
		<Setter Property="FontWeight" Value="SemiBold"/>
		<Setter Property="FontSize" Value="{StaticResource DefaultFontSizeNormal}" />
		<Setter Property="Margin" Value="5"/>
		<Setter Property="Padding" Value="9, 0, 9, -1"/>
		<Setter Property="VerticalAlignment" Value="Top"/>
		<Setter Property="HorizontalAlignment" Value="Right"/>
		<Setter Property="MinWidth" Value="28"/>
		<Setter Property="MinHeight" Value="28"/>

		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="local:TileNotification">
					<Grid>
						<Rectangle 
							Fill="{TemplateBinding Background}"
							RadiusX="14"
							RadiusY="14" />
						<ContentControl
							Margin="{TemplateBinding Padding}"
							Content="{TemplateBinding Content}" 
							VerticalAlignment="Center" 
							HorizontalAlignment="Center" />
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
</ResourceDictionary>